@import "module/variable";
@import "module/initCSS";
@import "module/header";
@import "module/user_tabs";
@import "module/footer";
@import "module/right_box_tags";
@import "module/right_box_title";
@import "module/select";
@import "module/mixin/flexhack";

.header {
    @include commonHeader2();
}

.user-tabs {
    @include userTabs();
}

.footer {
    @include commonFooter();
}

.ask-page {
    .main-box {
        .ask-main-box {
            padding: 30px 40px 0 27px;
            .ask-text-area {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
                border: 2px solid #209ea7;
                background: url(../images/ask/ask_bg.png) no-repeat 0 0 transparent;
            }
            .title {
                padding: 10px 0 0 0;
                margin: 0 26px;
                border-bottom: 1px solid #e0e0e0;
                input {
                    display: block;
                    width: 100%;
                    outline: none;
                    border: none;
                    font-size: 16px;
                    line-height: 1;
                    height: 16px;
                    padding: 8px 0;
                    color: #000;
                    background: transparent;
                }
            }
            .textarea-box{
                margin: 0 26px;
                textarea{
                    width: 100%;
                    outline:none;
                    border: none;
                    resize: none;
                    padding: 10px 0;
                    font-size: 13px;
                    line-height: 1.4;
                    height: 55px;
                }
            }

            .act-box{
                height: 50px;
                .attachment,.picture{
                    float: left;
                    color: #209ea7;
                    line-height: 39px;
                    margin: 0 10px 0 12px;
                    i{
                        font-size: 20px;
                        margin: 0 4px 0;
                        position: relative;
                        z-index: $zindexMin;
                        top: 3px;
                    }
                }
                
                .btns{
                    float: right;
                    .tips{
                        float: left;
                        color: #c5c5c5;
                        line-height: 39px;
                        padding: 0 10px 0 0;
                    }

                    .select-ui {
                        float: left;
                        @include selectUi();
                        .value{
                            height: 37px;
                            line-height: 37px;
                            background: #ffffff;
                            line-height: 39px;
                            height: 39px;
                            border: 1px solid #209ea7;
                            -webkit-box-sizing: border-box;
                            -moz-box-sizing: border-box;
                            box-sizing: border-box;
                            border-radius: 3px 0 0 3px;
                        }
                        .options-list{
                            top: 39px;
                            border: 1px solid #209ea7;
                            border-top-color: transparent;;
                        }
                    }
                    .submit{
                        float: left;
                        width: 100px;
                        line-height: 39px;
                        color: #ffffff;
                        background: #209ea7;
                        text-align: center;
                        border-radius: 0 3px 3px 0;
                        margin:0 17px 0 0;
                    }
                }
            }

        }
        .qa-block{
            .qa-tabs{
                @include flexBoxHack(row);
                margin: 27px 0 0 0;
                div{
                    @include flexItemHack();
                    float: left\9;
                    width: 20%\9;
                    font-size: 15px;
                    font-weight: bold;
                    color: #000;
                    line-height: 39px;
                    text-align: center;
                    border-bottom: 3px solid #f2f3f4;
                    border-right: 1px solid #e4e5e6;
                    background: #f2f3f4;
                    cursor: pointer;
                    -webkit-box-sizing: border-box;
                    -moz-box-sizing: border-box;
                    box-sizing: border-box;
                    &:last-child{
                        border-right: 1px solid #f2f3f4;
                    }
                    &.focus{
                        border-bottom-color: #29b1ba;
                        color: #29b1ba;
                    }
                }
            }
            .qa-list-box{
                width: 98%;
                padding: 30px 0 10px 0;
                margin: 0 auto;
                .qa-model{
                    @include flexBoxHack(row);
                    padding: 0 0 16px;
                    border-bottom: 1px solid #f0f0f0;
                    margin-top: 10px;
                    .answers,.views,.votes,.text{
                        @include flexItemHack(0);
                        float: left\9;
                    }

                    .answers,.views,.votes{
                        width: 70px;
                        text-align: center;
                        div{
                            width: 42px;
                            height: 42px;
                            font-size: 15px;
                            font-weight: bold;
                            line-height: 42px;
                            margin: 0 auto 6px;
                        }
                    }
                    .answers{
                        margin: 0 0 0 10px;
                        div{
                            background: #209ea7;
                            color: #ffffff;
                        }
                    }
                    .text{
                        padding:0 0 0 30px;
                        div{
                            font-size: 15px;
                            line-height: 42px;
                            margin: 0 0 6px 0;
                        }
                        p{
                            color: #a7a8a9;
                            span{
                                color: #006699;
                            }
                        }
                    }
                }
            }
        }
    }
    .nav-box {
        .title {
            @include rightNavTitle();
        }
        .tags {
            margin-bottom: 30px;
            @include rightTags();
        }
        .top-users {
            .top-user-list {
                .top-user-model {
                    height: 41px;
                    margin: 0 0 14px 0;
                    img {
                        float: left;
                        display: block;
                        width: 41px;
                        height: 41px;
                        border-radius: 100%;
                    }
                    div {
                        padding-left: 55px;
                        h3 {
                            font-size: 15px;
                            font-weight: normal;
                            line-height: 1;
                            color: #515151;
                            padding: 4px 0 6px;
                        }
                        p {
                            font-size: 12px;
                            line-height: 1;
                            color: #515151;
                        }
                    }
                }
            }
        }
    }
}